import type { IForm } from '@/base-ui/HyForm/types';

export const userSearchFormConfig: IForm = {
  formItems: [
    {
      type: 'input',
      field: 'name',
      label: '用户名',
      placeholder: '请输入用户名'
    },
    {
      type: 'input',
      field: 'realname',
      label: '真实姓名',
      placeholder: '请输入真实姓名'
    },
    {
      type: 'input',
      field: 'cellphone',
      label: '电话号码',
      placeholder: '请输入电话号码'
    },
    {
      type: 'select',
      field: 'enable',
      label: '用户状态',
      placeholder: '请选择用户状态',

      other: {
        options: [
          {
            label: '启用',
            value: 1
          },
          {
            label: '禁用',
            value: 0
          }
        ]
      }
    },
    {
      type: 'datepicker',
      field: 'createAt',
      label: '创建时间',
      other: {
        startPlaceholder: '开始时间',
        endPlaceholder: '结束时间'
      }
    }
  ],
  reactiveCol: {
    xs: 24,
    sm: 24,
    md: 12,
    lg: 8,
    xl: 8
  },
  labelWidth: '100px',
  gutter: 20
};

export const roleSearchFormConfig: IForm = {
  formItems: [
    {
      type: 'input',
      field: 'name',
      label: '角色名称',
      placeholder: '请输入角色名称'
    },
    {
      type: 'input',
      field: 'intro',
      label: '权限',
      placeholder: '请输入权限'
    },
    {
      type: 'datepicker',
      field: 'createAt',
      label: '创建时间',
      other: {
        startPlaceholder: '开始时间',
        endPlaceholder: '结束时间'
      }
    }
  ],
  reactiveCol: {
    xs: 24,
    sm: 24,
    md: 12,
    lg: 8,
    xl: 8
  },
  labelWidth: '100px',
  gutter: 20
};

export const menuSearchFormConfig: IForm = {
  formItems: [
    {
      type: 'input',
      field: 'name',
      label: '菜单名称',
      placeholder: '请输入菜单名称'
    },
    {
      type: 'select',
      field: 'type',
      label: '类型',
      placeholder: '请选择菜单类型',
      other: {
        options: [
          {
            label: '一级菜单',
            value: 1
          },
          {
            label: '二级菜单',
            value: 2
          },
          {
            label: '三级菜单',
            value: 3
          }
        ]
      }
    },
    {
      type: 'input',
      field: 'intro',
      label: '权限',
      placeholder: '请输入权限'
    },
    {
      type: 'datepicker',
      field: 'creatTime',
      label: '创建时间',
      other: {
        startPlaceholder: '开始时间',
        endPlaceholder: '结束时间'
      }
    }
  ],
  reactiveCol: {
    xs: 24,
    sm: 24,
    md: 12,
    lg: 8,
    xl: 8
  },
  labelWidth: '100px',
  gutter: 20
};
